* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #6f3588;
}
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  & {
    .btn:nth-child(1)::before,
    .btn:nth-child(1)::after {
      background: #ff1f71;
      box-shadow: 0 0 5px #ff1f71, 0 0 15px #ff1f71, 0 0 30px #ff1f71,
        0 0 60px #ff1f71;
    }
    .btn:nth-child(2)::before,
    .btn:nth-child(2)::after {
      background: #e67e22;
      box-shadow: 0 0 5px #e67e22, 0 0 15px #e67e22, 0 0 30px #e67e22,
        0 0 60px #e67e22;
    }
    .btn:nth-child(3)::before,
    .btn:nth-child(3)::after {
      background: #2ecc71;
      box-shadow: 0 0 5px #2ecc71, 0 0 15px #2ecc71, 0 0 30px #2ecc71,
        0 0 60px #2ecc71;
    }
  }
}
.btn {
  width: 200px;
  height: 80px;
  margin: 40px;
  position: relative;
  a {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0px 15px 35px rgba($color: #000000, $alpha: 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    z-index: 1;
    font-weight: 400;
    letter-spacing: 1px;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    // filter: blur(15px);
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 50%;
      height: 100%;
      background-image: linear-gradient(
        to left,
        rgba(255, 255, 255, 0.12),
        transparent
      );
      transition: 0.5s;
      transform: skewX(45deg) translateX(0);
    }
  }
  &:hover {
    a {
      letter-spacing: 3px;
    }
    a::before {
      transform: skewX(45deg) translateX(200%);
    }
    &::before {
      bottom: 0;
      height: 50%;
      width: 80%;
      border-radius: 30px;
    }
    &::after {
      top: 3px;
      height: 50%;
      width: 90%;
      border-radius: 30px;
    }
  }
  &::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    border-radius: 10px;
    background: red;
    transition: 0.3s;
    transition-delay: 0.3s;
  }
  &::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    border-radius: 10px;
    background: red;
    transition: 0.3s;
    transition-delay: 0.3s;
  }
}
